//对于接口型OJ编程的单链表线下调试代码
int main()
{
   struct ListNode* n1 = (struct ListNode*)malloc(sizeof(int));
   struct ListNode* n2 = (struct ListNode*)malloc(sizeof(int));
   struct ListNode* n3 = (struct ListNode*)malloc(sizeof(int));
   struct ListNode* n4 = (struct ListNode*)malloc(sizeof(int));
   struct ListNode* n5 = (struct ListNode*)malloc(sizeof(int));
   struct ListNode* n6 = (struct ListNode*)malloc(sizeof(int));

   assert(n1 && n2 && n3 && n4 && n5 && n6);

   n1->val = 1;
   n2->val = 2;
   n3->val = 3;
   n4->val = 2;
   n5->val = 5;
   n6->val = 2;

   n1->next = n2;
   n2->next = n3;
   n3->next = n4;
   n4->next = n5;
   n5->next = n6;
   n6->next = NULL;

   //通过调试观察链表的数值的变化
   removeElements(n1, 2);

   return 0;
}